package test01;

import java.util.Random;

public class RandomTest {

    public static void main(String[] args) {
        Random random=new Random();
        int num=random.nextInt(101);//生成[0,101)的整数
        System.out.println(num);
    }
}
